<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace Admin\Model;
use Think\Model;
class ClassifyModel extends Model{
    
    protected $tableName = 'classify'; 
    
    protected $_map = array('objectId' => 'id'); 
    
    //配置字段
    protected $fields = array(
        'id', 
        'title', 
        'intro',
        'gjz',
        'fileurl',
        'ordnum',
        'status',
        'syncStatus',
        '_type'=>array(
            'id'=>'int',
            'title'=>'varchar',
            'intro'=>'varchar',
            'gjz'=>'varchar',
            'fileurl'=>'varchar',
            'ordnum'=>'int',
            'status'=>'int',
            'syncStatus'=>'int'
        )
    );
    
}